package com.example.hello.POJO;

import java.util.LinkedList;
import java.util.List;

public class HistoryPOJO extends POJO {

    private String _id;
    private List<String> history = new LinkedList<>();

    public HistoryPOJO() {
    }

    public HistoryPOJO(String name) {
        this.name = name;
    }

    public String get_id() {
        return _id;
    }

    public void set_id(String _id) {
        this._id = _id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getHistory() {
        return history;
    }

    public void setHistory(List<String> history) {
        this.history = history;
    }

    public void addHistory(String history) {
        this.history.add(history);
    }

    public boolean removeHistory(String history) {
        return this.history.remove(history);
    }

    public boolean hasHistory(String history) {
        return this.history.contains(history);
    }

}